package com.shy.springframework.test.bean;

import com.shy.springframework.aop.MethodBeforeAdvice;
import com.shy.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * @author yzpang
 * @desc:
 * @date: 2023/2/14 14:03
 */
@Component
public class SpouseAdvice implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("关怀小两口: " + method.getName());
    }
}
